Repository navigation
Conversation
This was referenced Nov 23, 2026
Collaborator
|
@maniaba thank you! Could you please rebase this branch? |
maniaba
force-pushed
the
fix/password-reset-without-local-identity
branch
from
November 28, 2026 20:17
cbfef1a to
4d42012
Compare
datamweb
reviewed
Nov 30, 2026
datamweb
left a comment
Collaborator
There was a problem hiding this comment.
I see this as more of an enhancement than a bug fix. Shield commonly uses email/password authentication, but it also supports users with other authentication methods.
The proposed change makes force-reset more compatible with alternative authentication methods while preserving the existing behavior for users with an email_password identity.
I'm fine with this change, but I would classify it as an enhancement rather than a bug fix.
Please make sure all unit tests pass.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
User::requiresPasswordReset()now returnsfalsefor a user without anemail_passwordidentity. Theforce-resetfilter can then allow an authenticated user with no Shield password to reach the protected route. For users with an email/password identity, the existingforce_resetflag still controls the result.The password-reset guide documents this behavior. The regression tests cover both the user method and a request protected by the filter.
Checklist: